Uhm.. how could i forget to commit this code? tidied up commands.c, removed some useless pointers, and put debug messages inside debug #ifdef's.