Reorganized comments and corrected typos in create_var