Fixed a bunch of bugs and small issues
Finished feature 56033876/console-error-messages.