Finished multithreading support for EMGFileProvider. It is now possible to communicate correctly with the EMGFileProvider. Added comments for classes and memeber functions