Adding a .gitignore.
Fixing issues with several convenience methods.