- code clean up and additional comments
- impl. snapshot functionality