Add writing to file support and improve character class printing for negations.
Add writing to file support and improve character class printing for negations.

kevinaangstadt/rapid,kevinaangstadt/rapid