Add inline samples and jsDoc