(For Aaron) - Added parameters to update config function

added type checking for funciton parameters
added unit tests

@abeppu