Adding simulation function and text archive