Bad idea to include mozilla. needs further investigation
Separated functions into their own file

- also added add hosts function to add entry to hosts file