Adding M_LIB to main library variable. Removing unused variables