Adding debugging (fixes #2) and don't require full QL syntax (fixes #1)