adds comments and sample app-imlpementation