Add explanations and clarify function descriptions