added truncation, unicode entity support, some styling changes