Replace optparse with argparse

Argument handling fixed - help properly displayed, make use of argparse
for all arguments
replace tabs with spaces

tabs replaces with 4 spaces in order to make the indentation consistent
buffered reading

read file by chunks, takes ~20% more time, uses ~5% of previous memory
usage