Add function definitions for addLine and addLineTmpl
Adding the function definitions for addLine and addLineTmpl so that they can
be used elsewhere in the program, not just after they have been officially
defined. This will allow us to addLine anywhere in the program should it
need to be done.