basic code
a redo of most things, with more separate files

who here likes bugs?
a few more insignificant changes...