Clean up value code.
Clean up "primitive" code.
Rename files and add some docs.