Exception handling and logging improvements, solves #193

In order to solve #193 some change in interfaces (different exceptions thrown in a few places) are required. I've also done some clean-up and removed some deprecated methods.