added multiple display methods and keys for cycling methods and gradient scales.  moved common functions into a separate source file.