Add module files and smarty library