Modified code

Tested and bug fixed CreateAddressFromxxx methods.