Added command argument support

And -debug for future use of boolean debugmode.