Flag package is now used for parsing command line args. Debug flag -Xdebug added.

Fix for bug #5