(For Aaron) - Added parameters to update config function

added type checking for funciton parameters
added unit tests

@abeppu 
NB. You don't need to explicitly raise a ````RuntimeError````. That's the default exception type.