added functions file and edited README file