Commented, Updated var names, normalized functions, etc.