minor updates to library

1. proper shutdown of current fetching/publishing streams upon library
unloading
2. updates to default config file
3. code formatting