handle lazy_shape in spiketrain array_finalize
fix small bug in tools
Use logging and BrainwareSrcIO cleanups