Demographic File Bug Fixed

Fixed bug with the demographic file created. Working as intended now.
The montage feature is still incorrectly implemented in this branch.