Refactor current code

- Link torrentmanager to thumbgrid 
- Refactor current code
- Update documentation of current code
- Format current code