reformatted code ( use spaces instead of tabs )
added license file