fixed out function to accept multiple datasets, and formatted output for project guidelines