Some bugfixes and tweaks in smrun; split up smcNIDAQmx driver into smaller special purpose control functions