Multiple changes and error fixes

Fixed a bunch of errors and also the setup wizard on first run