Some small corrections

still a bit bugged… on the mac works perfect, but on the RPI worked so
fast that I figure it out it was a error… maybe put the reading on a
thread is the option.