fix spelling and cleanup whitespace