Datalogging Code Explanations please - redirect to newbies