Corrected algorithm name and fixed other minor issues