Fixed various issues, cleand up some code, auto updater improved