added calculateTime function for easier easy calc. and cleaner syntax Added timings for reading and writing of data