Add licensing info: GPLv3
Add -Wall compiler switch and fix warnings.
Fix debug string.