Added additional debugging for easier identification of issues and remove uncessary sleeping in  main render loop.