remove unused code
capped number of decimal to 5, show progress sooner
bug fixed in creating a sub matrix
update code