Fixed 14 out of 18 lint warnings.