Many small fixes

1) Call `raise` on instances of Exceptions, not on the classes.
2) Fix some docstrings, specifying more formally which exceptions are raised.
3) Fix logging messages using correct semantic for critical (i.e. unrecoverable error) and warning (foreseeable unwanted condition).
4) PEP8