Added a few clarifying lines to Scala so that the examples can be run as given. Removed a duplicate example.