Fixed some issues in initializing variables and corrected some mislabeled items.