full class construction complete for file writing. need to finish fixing NullValueExceptions