Changed license

- Removed all copied code
- Changed back to MIT License
Adapted tests