updated README
project cleanup
added tests
minor code fixes