fix capitalization of function  names
fix bug preventing render of exactly 60 fps
remove unused code