Add support for types other than int in oct, hex, hexu & pad. Document the API.