Added error checking to commands.c in tx. NOTE: commands.c must be rewritten, in a library, to take a table of commands, and an optional number of parameters that get populated as necessary. THIS IS URGENT.