moved code for getting current script's directory to getScriptDir function
conerted line-ending from dos to unix
adding drag'n'drop for files; (buggy, under development)