major correction

Main script is divided into smaller scripts.
Folders for results are introduced.