Do not export types array.
Update constants.
Tidy source code.