Save to file.

        Parameters
        ----------
        fp : `file`, optional
            Output file.

def save(self, fp=None):
        """Save to file.

        Parameters
        ----------
        fp : `file`, optional
            Output file.
        """
        self.storage.settings['markov'] = self.get_settings_json()
        self.storage.save(fp)