Remove code copied from software scripts.
Use 'ns' as the first argument of all script functions.
Merge pull request #5 from jsafrane/devel/fix-namespaces

Devel/fix namespaces