added additional compiler warnings and fixed some minor stuff