Sorted out the output values, added some functions to set commission to 0 if not a whole rifle is sold.