added ConfigDevice class and supporting methods/functions.