Fix for issue #77
Fix for issue #77

Also clean up doc strings and ensure logging closes handles and flushes at exit.
google/capirca,google/capirca,rarcotvmw/capirca,google/capirca,rarcotvmw/capirca,google/capirca,rarcotvmw/capirca