Feature/matching

Improvements to msg matching: match at beginning of line only and don't match against pastes.