updated script to also generate constants for controller identifiers.