Fixed warnings from code inspection and changed pool and realm name.