Fluent interface for setSize and setType

added chaining
Merge pull request #249 from MarkVaughn/patch-3

Fluent interface for setSize and setType