standarize code

adopt debug, and getopt parse
add working implementation of `--goto` for alias use