added more functions to randeq; misc changes