doc: Refactor documentation and add OOP basics.