those first steps of yoga , the yama , or moral code of noninjury to others , truthfulness , nonstealing , continence , and noncovetousness , and the niyama prescripts of purity of body and mind , contentment in all circumstances , self-discipline , contemplation , and devotion to god and guru of patanjalis eight-fold path .