Changes to StorageManager. Now, the write operation is carried out in batches if the number of write operations exceeds the buffer size. And, some changes to time calculation.