Fix small typo in comments
Replace if()s with assert()s