fix issue with history showing incorrect next trade value

fixes #2
fix issue with debugging
whitespace edits