Moved code into directory, added tests and test dependencies.
Added .gitignore