Bug fixes and added enableKeepHtmlBreaks option