small bug fixes

removed spectrum print statement
fixed command line argument parsing