added tests and some readme