Some cleanup on the Scalar example

This also adds make targets to run the scalar example so it gets executed by Travis as all the other examples (and fixes the run_example_all target).

I really like the way @danielru denoted private instance variables with leading underscores. Should we take that as a convention for the rest of the library?