CoSE: Added comments to source code. Deleted dead code.