add LICENSE and whitespace cleanup