apples cleaned up and comments added.