debugged json, renamed vars
prepared for export single timegates. added base uri handling. bugfixes