Added inter-board following option (closes #8), optimized a bit and fixed a few bugs