modified AdamMain to add adam2sam to cli