added additional compiler warning and fixed some minor stuff