Maincode added
Readme changed for maincode