add template.go
add icafeRelease and some bug fix