fixed bugs in confparse file write, unit tests now pass
modified log_level() to ruturn current level