Code explanations added