Cleanup profile.
Move class Continuation to package "solver". Add comments.