fix coding style : don't use camelCase for local variables
put quit statement on new line
add license info