Updated gitignore.
Implementation and tests.