Added comments to classes

Added basic comments to all methods, minor tidying to existing comments.