added mng_transform_pose predicate, general refactoring and debugging