Don't modify the root logger if being used as a library

Libraries in python mustn't interfere with the root logger - only applications should do this.

I've moved the line:
```
logging.basicConfig()
```
so that it is only called if we're using app.py as an application.

This allows verbose logging when running **python app.py** without breaking logging in other applications relying on dataset.