Fixed some debug code and a bug.