Move usage help text to log.c
Document internals
Add .gitignore