fix stats print method
add tryCatch to all doc examples (closes #2)