changed a bunch of (id) types to (instancetype) types.  fixes #29, i think.