update examples for v2
update keywords
no longer used
Library now uses static memory allocation