require(), doc fixes; cosmetic cleanup