Docstrings and return value

Method comments should be docstrings.

check5() return else condition not in loop.