Using Getopt::Long to parse commandline args. Written a debug mode.