Minor bug fixes

Includes patches from Alain91 for various issues, also namespace fix for deprecated logger usage.