Validate and document loglevel and license args.

Moves validation of loglevel and license key down to the config call,
and improve default class documentation.