Some documentation and fixed my the shortcode by returning the content rather than directly echoing