Added text wrapping. Fixed templates.