Updated GML to use so that invalid bendpoints use the new CustomButtonDialog. Added docstrings to code.