Fixes comments, removes irrelevant variable.