added some more stuff and factors, made it usable with any size matrix
Merge branch 'master' of https://github.com/joostmeulenbeld/A6_project_software