updated autoloader and expanded logging routines to remove old log entries