TINYGL: Improved code commenting.
TINYGL: Refactored big complex if else sequence with template function calls.