Added command line parser and modified all console based programs to use it.