Removed debug statements
fixed sort routines for amplifiers
added masks for output_options
moved to output_options system
typo
tested sort routine: 20 is the best breakpoint for high values
working query replacement for managem_amps and mga_spec