Replaced code with functions. Grouped LDA-LDA method code together and added separator for further exploratory work (Brian's new stuff)