! not sure about that $$ variable ... plus some spacing, lots of unused globals still

Signed-off-by: Spuds <spuds@spudsdesign.com>