Update matrix creation and add tests
Add codox configuration