Added div by zero exception handling. Added input params to file for batch job running.