Various small fixes. And introduced allowScroll as an option.