Add function createproject and edit main