removed unused signal;
fix some compiler warnings;