rm dynamic matrix from repdiag
fix examples