add mapstructure lib

More clear and flexible than before.