Updated README file

Updated the README file to mirror the changes in the code so that the function is broader, and can accept user defined inputs and outputs.