added comments and handled exception in all processor class