added loading overlay
added error message
added global configuration for important vars
various tweaks to HTML file