Refactored code.

Instead of a list of parameters in the method call to render(), a
dictionary of parameters is now passed which results in the code being
much cleaner and easier to understand and manage.
Took some inspiration from the ever amazing Ethan Schoonover's Solarized Color scheme.