completed regfile and added demux