Commented and cleaned up the code some.