added docs from Lloyd and created a little structure