added how-to + some refactoring

Change-Id: I166e201a988fcad19bad83e8f0cc6790c63d8570
DAG documentation

Change-Id: I9b3f99011060257b74df4f8f77a0e08ad76b1c01