Fix spelling and file permissions