more comments and refactoring of binary package download