Added .gitignore.
Added Sphinx documentation. Fixes #3.