added missing license headers, polish docs