Moved FunctionContainer into functions module
Fixed exit code.
Added UserDir class.