implemented initialise_candidate

The new code is kicking the old code's ass.