Replace mercurial ignore with git ignore
Fix bug.
Add travis script.