statistics added, and documentation updated