Documented code and realized some changes.