add license statement, remove trailing whitespace, remove unused module