Made methods chainable.
Updated examples with chained methods.
Fixed a bug in the Triad class