Various fixes.
Update README.
Add gitignore.