Fixed handling of windows line endings within the ascii dearmoring

Also improved the code style in the same function, made a mistakenly global variable local and fixed the documentation. I didn't include the regenerated documentation and minified versions since they are getting a bit unwieldy I imagine.