Removed global variables in main basicbookreader.cpp