GNU code style & condition shorthand refactor and base comment of method function