added the home controller
fixed code
Merge pull request #4 from genenettles2/master

added the home controller