Apro_gen: Mutli-functions, new demo application