fixed bug that caused memory allocation to crash program. settings window now reads and writes data accordingly