Fixed bug in logger, added hamcrest for junit