20130911-03

Add savemain.m for maintaining functions.