changed sensordata to data
made all classes implement serializable and add generated serialVersionIds
changed object returns to serializable