Added private and public functions

- Some functions are now private or public
- Fixed the method calling system
- Tabs can now be opened and rotated with a method call
Added controls

Added tab controls to the demo