Correct project structure.
Add parsing of command line arguemtns.
Add additional check and process command line options.
Remove final-state option.
Restore final-stage option.
Add support of script arguments.