added share code and minor fixes
fixed git ignore