Stderr is logged and printed, better messages for qc_amount_calculation script + Some fixes.