Formated Output, changes on Algorithm