refactored structure of the latex files