Fixed bug in Simulation code; refactored some logging commands; added ability to have minimum balance as well as expenses