Clean up batch code; add yaml meta log; speed up Travis.