added type parameter for setting types to keys eg: string, bool, int,
array, etc
added option for defaults host option