Mostly comments

Add comments throughout the codebase to improve clarity/readability.