A load of fixes

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>