done descripting main.cpp and mionr changes in SharedData structure