Updated readme instructions, add functions file