make options setable from commandline, fix piping typo (2>$1 should be 2>&1), tidy up menu