Separated tests and code.
Added .gitignore.