added code for calculating size of stored results and an example for accessing data