Minor fixes

fixed some errors
added share feature