Added comments and reformated some methods
Merge pull request #1 from patela29/master

Added comments and reformated some methods