analytical index added: fixes #29 and closes #31.