docs: typo
refactor: don't use window
add version comment