update readme and move methods to private