Clean up tabs, add shortcode parser function

Added a function to step through nested shortcodes and retrieve their
properties.