rewrite of internals

advance sample on internals rewrite
add links to components for foundation and kernel
link more events and add link of missing terminate event
keep </ consistency
fix as </ is for paths and not for references
changed reference link as per stof's comment