fix log money computation, formatting
fix array size