added gitignore file
Fixed lots of bugs, as per blog post 3