Cleaned up code, moved section drivers to class.

Starting a code refactor for better, clearer code where possible, with a
focus on object orientation.