GetAll methods added

1. added getall methods
2. remove defer close, use close instead
3. continue when there is a file name collision, instead of os exit.