Modify template engine unit tests
Update API documentation