Fixed Classnames and filenames and reduced number of truncate functions to single one with optional parameters.