Fix pseudo code
Fix description. Close #1.