initial commit of main and check map functions