for loop in plotlod changed to loop through uchr, not seq(along=uchr).