fixing export of random functions
cleanup of $ require. gibberish update