Updated with coding style changes and addition of _insertChunk private method in GridFS