Show and error message if API data couldn't be loaded
added some comments
major overhaul of configuration and library scanning