update readme and apply changes to code