Code tidying

Removed redundant comments. Added new comments. Slightly tidied code.