Made static variables in main class private

added accessors to access them