add html generator to generate paper html; randomgenerator impled