refactoring, moved graph directive to a seperate js file
fixed small variable name issue with pull request #55 (jshint warning)
updated property docs in config.js