Added instancetype keyword to initialization method in SDK