Separated PreferencesComponent from MainWindow; finished input blocking; removed PlaybackComponent's dependency on PlaylistComponent;
improved error checking; added debug output; improved comments.