added missing license header, fixed indentation