replaced rand with sample where appropriate, fixed problem with design_directory file