Added option to execute the script directly

- Added option to execute the script directly from command-line
- removed CRs (dos2unix), see: http://stackoverflow.com/questions/19425857/env-python-r-no-such-file-or-directory
- removed trailing spaces