add file exit validation
Merge pull request #7 from agung-wete/foo

add file exist validation
fixed indentation