Added .ini configure file loads
Added class Notemap and MapState
Added segment and some function defines
Added more functions to do & code conflict fix