Changed return type of constructors from id to instancetype

Changed return type of constructors from id to instancetype.

—Anton