add Rectangle and Pedder::Text types; encapsulation; code clean up
Merge pull request #2 from detlefreichl/dev

merge to master