improved pool mechanisms: tokens allows null as pool (not attached to any pool), fixed some access modifiers