Add some missing documentation
Reformat to PSR1/2 standards