change to print output
made 'config' a class attribute
removed dependancy Hash::Flatten. Created custom getter