fixed share_file and added some if's. Still not complete.
fixed share_file and added some if's. Still not complete.

ohaz/amos-ss15-proj1,ohaz/amos-ss15-proj1,ohaz/amos-ss15-proj1,ohaz/amos-ss15-proj1,ohaz/amos-ss15-proj1,ohaz/amos-ss15-proj1,ohaz/amos-ss15-proj1,ohaz/amos-ss15-proj1