fixed indents, added missing license header