add .gitignore
remove unused code
Merge pull request #1 from somelun/master

refactoring