Improved bitregister and fixed bug in Bus.