GUI: Autoformated code and some syntax fixes