Moved number and error types out of matrix folder.
a pub use simplification.