refactored some tests and added some stuff in the readme