Added comments for clarity.
Added explanation for clarity.