improved main

- corrected main syntax
- add application icon