Refactor document initialize

Use separate arguments instead of hash to reduce verbosity.