Statistical turn length analysis and completely rewritten statistics module