Added some debugging functions, moved procedural voice implementation.  Some other fixes.