Implemente mcu_matrix object. Also improve docs, fix formatting, add tests.