Update changes to make run under Ruby 2.1.2, add gitignore file