code cleanup

remove commented code and profiling code