Miscellaneous changes, bugfixes. Autotuner now works