memory manamgent changes, mem leaks removed; autorelease pool changes.