Rewrite specifications as a class.
Add option to shade missing labels.
Update and improve docstrings and comments.