Removed diagrams array type and procedure using it that was never called
Added routine to write some variable data to file
Changes to databases caused by testing Rail program