fixed typo and cleaned up old code comments