Added a few clarifying lines to Scala.

Added a few clarifying lines so that the examples can be run as given. Added a few lines to the class example to demonstrate more of the functionality. Removed a duplicate example.