fixed all warnings and errors; everything works!