Change command line arguments handling. Add interactive mode. Improve logs.