Typos and wrong order of commands

Fix a typo and the wrong documented order of Top and End.