Gap and Well cost

1. Modify gap detection.
2. Add well cost for state