added in logger and fixed comments
massive overhaul
adding tests and comments
refactored tests\!
added more tests