add app-util.h & app-util.c. nullapp calls app_output to print out payload
 fixed issue #4; fixed issue #5