Assigned default value
Convert single line comments to docstrings
Reformatted code
Removed unreached line
Refactored duplicated codes