updated create_instance.pl to accomodate running of multiple instances