Alphabetised procedures and removed indentation according to whether one procedure is called by another.  Some code refactoring, comment standardisation and new procedures for variable checking.  Also ensured format of all author tags are standardised.  Made some new TODO tasks.