Add pretty stats param and refactor error handling
More refactoring of error handling
Disable whitelist by default
Better logging
Add logging for startup failure