added logging to file
added varargs header
merged master
Merge branch 'fix_log'