adds some comments/documentation
cleans up creation of menu handlers in motion planning plugin