split code up into more functions, added option to open lp2 file in text editor from program, and added functionality to open lp2 as default program from a file