add documentation and cleanup the gdp triplifier