doc: mv INTERNALS.md doc/, add volatile intermediate func warning