added functions and updated readme