added some comments to *.h and *.cpp