Refactor code of add-page-command + add .ignore file.