Fixing cat and file output.
Fixing up the error logging and debug info printing.
Make the accurev module type correct, and change back to using pop.