Removed inline comments. If explanations are needed, put them in the docstring.