Initial work done

- Tests don't compile yet
Fixed unit tests

- Some unit tests were obsolete and have been removed - new unit test
will take place instead
New improvements

- Removed unnecessary locks
Improvements on snapshots retrieval

- new unit tests
Added documentation