Fixed minor bug when getting length of list of lists for maxchanlines.
Added another replace word function, this one using closure.
Added defaults to command line function, and fixed an empty list bug.
Added channel command line option, and fixed bug with option defaults.