added serport and changed some stuff in qt