fixed header guards
fixed method signature to match the one in the superclass
added initialization of local variable
removed extraneous semicolon
removed config parameter
fixed formatting of error message
fixed type check warning
fixed comparison