Class output of reactive.
Also add print method and test
Merge pull request #205 from hadley/master

Class output of reactive.