fix bugs in swig interface
change start agent script for EC2
update script for running exp1