completely refactored library to use a Transformer to set values by type

Signed-off-by: Blessing Osakue <iyoworks@gmail.com>