Program is operable now, refactoring suggested, however it is a slightly more useful variation on a hex editor.