Changed allocation method so that allocation date is set for the child. Small code improvements.