Moved tab's code to new classes.
Added pTools with static methods.