cleaning up to_dict(), adding relationships into output (closes #50)