added missing imports
fixed pep8 warnings
executable file, shebang added, comments moved in README
fixed issues with path, open file mode, undefined variables, etc
used argparse for command-line arguments
create output directory if it does not exist
added beautify function to remove unnecessary newlines
added docstrings
added config file for logger
added gitignore to the project
used format() for string formatting
added try-except
added unit tests
updated readme, added initialization script