refactored variable to constant.
refactored how host name was retrieved.
refactored variable names and prefix validity checking.
Merge pull request #7 from graceland/feature/minor-tweaks-to-graphite

Feature/minor tweaks to graphite