Added q node adaption functions

The q.module file now has the adaption functions for node.