Changes omitSpaces to boolean and adds a default value

Makes False the default parameter, causing a string passed through the
function with no second parameter specified to return a list that
includes spaces, the same as list(string).

Also changed the omitSpaces parameter to boolean, so accepted values
are now True, False, 1, 0, or no value(default).

In addition, the comments have been updated to use the docstring
convention.