List received shares command was added.
Refactoring and cleaning code.