Added serialized object size check for 5MB.
Added MapFig
Added logic and error checking for size check and exception throwing.