Add Meggitt documentation and helper function to Megitt code