remove old code, and use new profiling functions
Heavy refactoring on rendable objects
merged head