PSR-2 compatible + fix documentation

I would like to help the legibility of the code doing it more compatible with the standard PSR-2 and fixing some documentation that I found wrong.