Lots of bugfixes, interface changes and edits to qt widgets