Add docs to a bunch of stuff

Adds docs where previously there were no docs. Also adds windows support to libterm.