Instead of saving the timestamp in a long variable save it in a long array alongside newData
closes #13