First commit
4April2014

Tidying up and adding comments.