added debugging messages
unique id for the second ddc-instance
smaller changes to parsing query_input - grammar, offset
links handling (ptr)