Fixes various bugs and removes useless conf files