Profile editor correctly changes options  for cp.

Added more to profile debugging.
Fixed profileManager crashing the program by returning 0 if the current
index is < 0.