Fixed style and JSON bugs in P&L, balance