Added .gitignore and moved test code.