Modified readme and added functions as individual files.