added delete option
added some comments
change what main returns