Fixed README and tidied up functions file.