dick around with making CLI utils instead of doing real work

on the bright side, it should run on linux this time (if you compile it
right)
also fixed a few signed/unsigned bugs in txd headers