Fixed errors and warnings

Fixed errors due to override annotation on interface method
implementations, and a few warnings.