restructurized repository, split code into packages, updated readme, tweaked code a bit in the process. cleaned up, more or less