Add -p arg for public address on command line and add (a) => escapes

I also fixed some weird things going on with the globals, but fear I might have mucked up the threading a bit.