statcheck script, closes #111