Minor code review changes
Made all classes derived from MGComponent