added line length option
added a dictionary option