update for scala-2.11.1

I wrote for scala-2.11.1 and fix some parts which are deprecated.