UPDATE: remove unused variables.
FIX: cjeck file.listFiles() method return null.
DOC: update javadoc.
UPDATE: clean up code (add accolade in block statement (for/if/do) ...)