added cash calc, changed graph, loads of bits