added read&write functionality for propositional formulas; updated main to test