light refactoring

extracted all the classes to their own files and moved them to a 'src' directory to tidy up a little.

also did some quick formatting to favour java code style guidelines over the c style formatting that was there. hope you don't mind!