Fix bug in dot function (visua/numpy conflict); minor cleanup of old comments