Resolve multi-word commands longest first
Add backup files to .gitignore
Seperate command prefix striping from command checking
Make commands case-insensitive and add extra registration-time checks
Fix genmap description