added .swp to .gitignore
Corrected test assertions
remove useless comment
pseudo complete doc for tag.register