refactored a Trips class for all docrepos that downloads from TRIPS databases (they have very similar mechanisms)