Changes createmobilespec

-Deleted top level functions.
-Used optimist methods to print help.
-Changes on paths.
-Other minor changes.