Added define documentation and refactored menu code