basic functionality established, predictive behaviour for inactive columns added
merged in from matdan remote, changed to work with arduino code