updated docs and added line item validation