Updated functions and README.md