error handling for add_scatterer and make_path methods

perl wrapper suports error handling