I think it's great when people write some software and decide to offer that software to others for free, but I wonder, why not use SharingMenu, rather than reinventing the wheel?
http://www.macupdate.com/info.php/id/11985
With this one you can switch file sharing on and off and other nice things.