Improved correction algorithm

Also added "other contributors" to license, put a better example of use
in the readme.