Add .gitignore
Try refactoring
fix client code