Improved development of MergeRefToExp; improved documentation; added unit tests for the new development