fix 100doors_unoptimized trailing whitespace and clean code

travis build was issuing a lint warning about trailing whitespace. Removed trailing whitespace.

Also cleaned up code a bit.