Add support for Require and Include

adds support for require and include in funciton