Removed unneeded code and added comments

removed #pragma statements not used in the code and added comments to
code