update templates
add more documentation on static code