new functionality added, variable naming convention followed
Input file check logic changed

Instead of exit on empty input, we now check for at least one valid file
in input file array.
Comments removed, pylint+pep8 checked

A few comments I typed in for my file_api code removed. Unused imports
removed. pep8 conformity ensured