refactoring
refactoring
adding functionality to matrixdocs
more tests
removing unused code
readibility now, refactoring later