added .gitignore
tidied up code
bumped version to 0.8