fixed #164 - recursive WESTRING definitions
fixed #171 - changed IDs to ints

still needs some testing ...