Fixes to hw acceleration, added demo 2