added OOP-style chaining

Decided to give it a shot as well - what do you think?

Methods could also be assigned statically for a less hacky implementation.

Cheers