added money manager class, lots of reorg