small changes to remove some compile time warnings and added compiler argument Xlint in maven to get more detailed warning messages