Changed version number in files for release.
Moving some code around for readability.
Bug fix in partial sort.
Bug fix in partial sort.
Fixed more bugs.