renamed example and refactored
refactored mreg interpolation