removed 'thiz' var except where needed
adding examples for frameByFrame and custom functions
updating example