Replace print_s3g and RawFileReader

These are cleaned up versions from make-me-jmckib.
Update submodules in setup script.