add .gitignore file
fix style error reported by checkstyle

including tab-using, long-lines.
modify Subset to work as specified