added option for setting the number of characters per line