Fixing up a few issues
Added total doc print