Did some work on the profiler
General bugfixes and a LOD system