updating readme and adding tests