Added support for command line arguments, debugging interface