Updated the readme and added the functions