Support method chaining
Removed unneeded calls
Added more assertions
Merge pull request #215 from GrahamCampbell/chaining

Chaining