modified to not require a pix column in the input spectrum, added support for calibrate to be called from the command line