Moved all of the code into the functions folder

I had forgotten that Java requires a folder hierarchy for packages