Finished mesh::generate, some minor fixes/formatting/commenting.
Full mesh loading and static drawing should work now.