Add getHomeDirectory() method

Closes #2