Implemented error handling on the GUI side
Fixed the prompt issue
Major refactorization of the preference mechanism