Changed to Hash::merge to correctly merge recursive arrays.
Added additional config options to remove empty html tags.