Tabs to spaces.
Enforcing 82 char line length.
Simplifying conditions.
Simplifying conditions.
Removed unnecessary wqinitialization.
Modularizing code by extracting well-named functions with single responsibilities.
Merge pull request #1 from rhyolight/ContribStats

Updates to Carls' PR for contributor report