Use va version of fprintf when passing a va-list
Fix function prototype for initialisation function

Also: fix the documentation
Initialize logger in main function
Merge pull request #79 from neithernut/fix-logger

Fix logger