Added autocompletion in measurement screen and removed unnecessary code in readPort and portcontroller.