add timer
cut render func
add typedefs
upd examples
new func