Refactore configuration
Add version var and populate it