Correct code.
Cleanup code.
Add home directory creation to darwin systems.