Removed misplaced assertions.

  Other code just uses the code instead of asserting it is not null,
so, just remove the wrong ones.
Allow passing filename input arguments instead of only using stdin
Remove declaration of a temporary variable used only during debug.