test code is now in a reasonable state
Added gitignore
initial port of some of the code from testing