added error handling for non raspberry pi devices

added error handling for non raspberry pi devices
took out some white space