1. clean up insert HMR funtion into the Hproc tree to detect collision
2. moved the kobject registration to the end of the hmr creation
3. minor cleanup