removed whitespace, tabs, added licence