added text shortening (issue #14)
added support for different date formats (issue #7)