Some trailing whitespace changes, also added a method to clear the
trades list.