Added self=[super init]; for initialisation safety. Added object instance variable testing.