Adding comments

Adding comments for future readability as I read through this now.