removed some commented code and clarified explanations above methods