args parsing is moved to the main file, changed gitignore, added check for the res dir existence