Renamed bool variables and check methods

Renamed bool variables and check methods, some comments added