Add check for number of empty lines between functions and fix the corresponding failures
THis wil hopefully allow for unit testing