fix coding style : add spaces
wrap long lines
add default to switch statement
add newline at the end of file