new filters implemented with buffer. Fixed sensor.c to read all file without breaking at values of -1