cleanup and sharestatus fix

* check whether shares are paid when fetching them from db
* improved comments/formatting
* changed some logging messages