cleaned up main, matrix class and commented