Dried up the document input declarations
Optimized output de-duplication

Original approach: every item compared to every other item after output_array is precompiled.
New approach: Per item, check existing output array.

Exponentially decreases processing power required.
Guess I don't really need the selector attribute anymore
Whoops, don't forget to add inline styles to the single-matches!