add public directory and remove from gitignore.