There's like twenty styles of code in here. I cannot feasibly standardize all of them, but I can improve readability.