improved: move out code of fetching and installing to function

To improve later (add command `fetch`)
improved: command `fetch` added

To fetch files only (do not install).