Updated Invoicing

Updated Invoicing
and some whitespace changes
I found some more code that does not follow the PSR2 standard, I fixed them all, see my other pull request:
https://github.com/sumocoders/Teamleader/pull/16