LGPL License
remove dead code
bugfixes and unit tests