Massive refactoring, Added XML-Style comments across the board.