updated readme, added factorial example