Added Flag to start function

Added "-d" to start ES in the background