Add Smarty feature
Add Smarty libs directory
Fix bug