Reorganising Structure

I (Joshua) moved all the code to the top level directory to declutter
the hierarchy.