added functions and fixed readme