change Config class to accept an array
add static factory method to create config from php file