David richard unit tests

Wrote unit tests and updated gitignore file