Finished testing new functionnality

Major refactor
Completed many missing functions
Test and fix for bound parameters