Cleaned latex files and added script to invert a matrix