more tidying up
added auto address range detection and full sdb generation