Added xml comments from stateless.cs to stateless.js