Added module smart_trim and updated style for pre.