Set properties protected. Fix comment for get method. Fix var register.