upgraded dependencies
added extend method to document
misc bug fixes