Mostly documentation and comment cleanup.
Fixed up python doc strings.
Added licensing boilerplate to C files and documentation updates.