Update FOAM core and add acalc demo