revisions added to database
cleaned up comments and old code