Implemented instanceOf check. Closes #10.
release 0.2.2