improving encoder data receiving
timer improvements
switch removed