Add analysis of ameli and refactor gasoline