Fixed issue in error handling of corrupt KDB files
Refactored Base64 category to please static analyser
Removed obsolete code