License added
lot of style fixes