commited the .gitignore file
Homepage function added in the homecontroller