Added config handling

Created a configuration class, and integrated with the existing classes.
Merge pull request #12 from retr0h/retr0h/config-handling

Added config handling