Fixed a few compile errors and added section to testbed to show how to hook into model rendering