Added a few comment for better readability of the code