What to consider when preparing a written custody agreement