Added documentation and some other font-locking for masks.