streamline grammar serialization

- runexp: Grammar objects are instantiated with the same grammar
  as the one written to disk
- remove freqs option for writing grammars, frequencies are now
  automatically used if format is bitpar and weights sum to 1.
fix whitespace