Refactored and improved the library functions

- Torrent status is currently not implemented
Added footer to show session status