dependencies updated, documentation improved, minor adjustments to functions