Added 'dev' parameter
Shebang added, fixed typo, executable bit removed