changed 7-seg code to common anode.. and hacked around a bit with inputs