changed the main function, have to change functions in raspberrypi.cpp