More cleanup of AWARE code plus a few bug fixes

  - Now generate save directories for files automatically and consistently, based on file type and date/time
  - A couple of bug fixes for aware_utils
  - General cleanup: adding code comments, organising import statements etc.