fixed a whoopsie + debug info now prints to stderr
(that way you can redirect the output to a file, without the extra crap)