add stats and free space

- add session stats
- add free space
- apply cs-fixer
- add tests for session stats and free space