Added chmod function back in, and apps symlinks