Added explanatory comments at top