Added email detection and highlighting.
Prevent an index out of range check.
Smarter, more efficient string management.
Added license header.
Fixed license header address