checked raspberrypi.cpp code cleanings