Rebuilt the system files in order to give a better structure. Implemented support for Smarty