Added a check for the configuration file to see if it is valid json. If not error message will appear now. Added timeout to remove loading wheel if there is an error in the application code and the line to remove the wheel is not executed. If this happens a warning message will appear. Closes #23