Changes to Algorithm

Changed the name of the file, and some minors changes to the algorithm
that should make the algorithm work