Comments added

added comments to all classes/functions