updated compile index to fit with namespace change
@seliopou's first round of requested fixes (namechange + dead code removal + clamp tweak)