debugged and working examples

Signed-off-by: Anubhav Saini <IAmAnubhavSaini@GMail.com>