adding a few changes to Document Parser