Fixed readFile errors.
Changed initialization process. Look to Demo class for more info.
New process of libtaray initialization.
Adjusting to the new process of library initialization.