file output appender works but is messy
added dynaArray destructor