fixing wrong destructor if brackets
Adding debug flag to build

[skip ci]
Making writer defer SWMR mode until after creating dataset

Removing the const on the test image pointer. Really should fix that
into a proper class sometime...
First non-crashing writer application

However, it still doesnt read the dataset properly.