Changed plugin loader, implemented preferences.txt