remove some compile warnings
run code through netbeans source formatter