Properly handle debug flag
Added muLoc and muAssignLoc and adapted examples.