Added comments to all the source files
reformatted the code for it to be compliant to the eclipse standard