Updated Doc with internals explanation and added preamble file for easier editing in main TeX file