resolves deprecation issues for Scala 2.11

Also adds gitignore file.
upgrades to Scala 2.11

For whatever reason, the 2.11 compiler failed on the colliding private
methods `intRep`, so a minor adjustment was necessary.