made title generic
Backported changes into dataportalapi.py.
Moved configuration parameters near top of script.