Improved string output, did minor tests of it but not stress tested it, added NULL output type.