Added conditional subroutine calls. Wrote more complex example program for the dot matrix.