Neatened Up Repo

Some minor tweaks on the algorithm.