resolves issue #220 by adding getOptions method on Document class.