Added main codes

Change-Id: Ie4db7ee1634378fe39e56f52026d8cc646ef9648