added tests, updated README