clockgen: add license info, convert indents to spaces
clockgen: improve code style, fixes