add "print" option for outputting rewritten source

Closes #34