refactoring install command + add init command (see #1)