added comments to figure why Segmentation fault, still working on it