Fixing Latex equation troubles, added autonumbering