add some commands error checking.
add utility stdout output functions.
add output utility function which adds CRLF after the line.
change command line system to use the new output module.