standardize code quality
standardize code quality

- no newline before open brackets
- use strict equality comparisons
- cleanup redundant boolean equality checks
- remove unused variables
- refactor initialization code

regosen/Gapless-5