Modifies some document contents.
Adds some basic auth logic.
Updates TODO.