Added set ambient routine and fixed index buffer allocation bug which incorrectly used DWORD rather than WORD. Modified demo to use UU vertices.