added ascii hex input support; minor fixes