adding support to use wsd as module
Support WSD to work as script that can be distributed
Remove '+' from beginning of hash bang line
Added version number.