all the chosen shit added
Revert "refractored code and commented further."

This reverts commit fccfe51a6fcf6eecaafd7170188dc87e35efdb5c.