Guess work

Guess work for my part not sure if everything is working
Revert "Guess work"

This reverts commit 8bdf7cbffe061e6adedba4ede4ecb97fd5b9f5db.
My basic Work from code descriptions

This is what I got from basic descriptions of functions I don't think
its fully correct.