Code rewrite

The old code was rushed.

Updates:
- Added commands.
- Added objects for titles and tabtitles
- Fixed issues
- Made a useable API