Added data processing and Rpi code