OClResource frees refCount; beautified new code