Allow exporting custom fields to a text file

Addresses issue 131. Allows exporting customizable details to a text
file.

In case of outputting the resources, there currently will be a minor
change in that it will also output the