added scala template dynamic docs