[Suggestion] Add composer; Reformated code with PSR1/PSR2

Hi Cal,

I added composer.json to be more easier to install the required package. Also I used PSR1/PSR2 to reformat the code and added some comments to some methods.

Cheers,
Daniel Gomes