Fixed command line parameters and removed warnings