Update functions.php

define types and dir