Various improvements
Several bugfixes ; added convenience script for tuning everything