fix code-style and add documentation to addTitle and addRow methods