fix order of calls in createAmi. closes #3
add dontstop flag to createAmi