Added comments to header files and cpp files