Work on the C unit tests and texture manager documentation