changed licensing info, added some unit tests