improving linear algebra
cleaning up
restructuring the code