add copyright notice
don't use result as variable name
small changes
null buffer with every call of readline
add logging functionality
start using new log functions
make valgrind happy
macro magic
refactoring

- remove prefix for static functions
- remove unused includes
- use functions from log.h instead of err/warn from <err.h>