Add printing methods

This adds printing methods (Ruby's built-in `to_s`) for each class.