random issues

added commentary to random to try to track a bug. other cosmetic
changes. see issues list.