Fix C++-isms that had creapt in via read_tga
Document attribute and uniform location functions