Implemented all commandline arguments, and their handling.