Completed persistent and public data

- Added a new Log system.
- Fixed many bugs