added exception handling for parse method and removed test print statements,...
added exception handling for parse method and removed test print statements, everything else is the same
added exception handling for parse method and removed test print statements, everything else is the same