Code style cleanup.
Fixed compiler warnings and whitespaces.