attemps to fix file recovery bugs

Signed-off-by: Christian Lüthold <biocodr@gmail.com>
implemented share file (error handling not finished)

Signed-off-by: Christian Lüthold <biocodr@gmail.com>