Weights are now reset after phrase generation.
Started work on EBNF parser