Remove nowdocs, added license and docblock, along with a few tweaks.