cleaned up the code some more, added entropy and cost functions
started making real file divisions
final major reorg, I hope