Broke shared functionality out into its own file.

Bug fixes for comment nesting. OP highlighting implemented.