Added basic command line parsing.
Started work on command line parsing. Minor spelling fix in factor.h