cleaned up comments, program complete, making some unessecary subroutines inline