some changes to the structure, enabled GUI connection, also some warning
fixes