added a correction feature, closes #31