First commit with initial twcom lib.
Modify query & output functions