Fixed issues with .tex document, it compiles now