Moved sourcecode into src directory.
Refactored into comprehensible classes.