Implemented home dir symlink. pulled out root functions from functions.sh.