improved readme and added a test