Tested on some new tests, lot of less or more minor bugs fixed
Improved warnings