fix coding style, add indentation
fix coding style : add extra newline before function definition
fix coding style : correct syntax for checking boolean state
keen namespace doesn't have to be specified
remove commented code
set mode with a commandline argument
add double quotes to avoid word splitting
export variable for use in another script