Added execution declaration and execution rights
Improved main application