Simplified the data logger example and added some anotations.