Add a .gitignore file.
libknc.c: Restructure and fix the error string handling.