Added write method. Added ChunkComparator class for assembling chunks.