Added take_snapshots to DSL; Doc updates; Some refactoring.