Added more verbose comments in code