Update documentation.
Fix some bugs.
Update .gitignore.