First commit, major rewrite of code

My first while loop in a script. I will probably port that 'while process' thing over to ua.ahk soon.