Changed to one function per file

As per Leek Lab recommendations, I have moved every function to its own
file and set up RWTY.R to load all files.