Add static method for stringifying a boolean

Also add documentation for other methods explaining some of the choices
made here.