Implemented print_matrix function in core plot-discretization package.
Heavily refactored to modular structure (currently broken).