Copied text to latex file and fixed equations