Added kernel assertion tests.
Switched sample projects and tests back to .net 4.
Added more xml comments.