Remove build cruft, fix dependencies and versioning, add comments, rename.