Fixed compiler errors.
Beautify code.