adding -setType:inName:
adding method declaration
fixing initialization of properties