add gitignore
more descriptive mode error goto names
consolidate duplicated code into print_rom_size()