new comments for the structure variables
minor code structure refactor
new comments added
removed extra spaces
removed extra spaces
removed extra spaces