fixed readme and closed files in grammar