Added vectors and matrices and some minor fixes.