Improved input parsing.
Added unit test for Kronecker sum.
Fixed formatting.
Added unit test for DiagM.m