add main code to repo