Change Logs

- Renamed/Moved namespaces and filess
- Created one function to check the integrity of the data structures and the tables.
- Reorganization of code.