TINYGL: fixed minor issues in the code.