updated source.  exception handling.  print dollar sign for all badly formatted char characters (linux)