Minor correction to pseudocode
Added some more examples