adding decisions based on document type and fixing some claims parsing bugs