Added function definitions to README