enable codesniff warnings, fix warnings