Reworked refresh_library() so that it is ready for multiple filetypes and less try en execpt structures.